<?php
    include_once 'fun.php';
    include_once 'islogin.php';
    $id=$_GET['id'];
    $sql = "delete from manager where managerid = '{$id}'";
    $con=connect();
    query($sql,$con);
    $sql = "delete from cou_man where managerid = '{$id}'";
    query($sql,$con);
    $sql = "update stuff set managerid = null where managerid = '{$id}'";
    query($sql,$con);
    echo "<script>
			location.href='stuff.php';
	</script>";
?>